import numpy as np
from tkinter import *
import tkinter as tk
from PIL import Image, ImageTk
import random

root = Tk()
root.title("拼图游戏")
root.geometry("1400x690")
canvas = Canvas(root,width=1400, height=690)
canvas.pack()

image = Image.open("pt/5.jpeg")
image_array = np.array(image).astype(np.uint8)
image_pho = ImageTk.PhotoImage(Image.fromarray(image_array))
print(image)
print(image_array)
print(image_pho)

canvas.create_image(700,345,image=image_pho)

root.mainloop()